import 'package:json_annotation/json_annotation.dart';

part 'bt_block.g.dart';

@JsonSerializable()
class BtBlock {
  final String broadcasterId;
  final String nickName;
  final String avatar;
  final int gender;
  final int age;
  final String registerCountry;

  const BtBlock({
    required this.broadcasterId,
    required this.nickName,
    required this.avatar,
    required this.gender,
    required this.age,
    required this.registerCountry,
  });

  factory BtBlock.fromJson(Map<String, dynamic> json) => _$BtBlockFromJson(json);

  Map<String, dynamic> toJson() => _$BtBlockToJson(this);
}
